﻿<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ page contentType="text/html; charset=UTF-8" language="java" import="java.sql.*" errorPage="" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>无标题文档</title>
<link href="selected.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="selected" id="div1">
  <table width="701" border="1">
    <tr>
      <td>书名</td>
      <td>价格</td>
      <td>出版社</td>
      <td>作者</td>
      <td>上传者</td>
      <td>订购</td>
    </tr>
  </table>
  
  <p>&nbsp;</p>
  <table width="550" border="1">
    <tr>
      <td height="27">上一页</td>
      <td>下一页</td>
      <td>共几页</td>
      <td>第几页</td>
    </tr>
    <s:iterator value="books" var="ccc" >
	<tr>
		<td>书名<s:property value="#ccc.name" /></td>
		<td>价格<s:property value="#ccc.price" /></td>	
		<td>出版社<s:property value="#ccc.pressName" /></td>	
		<td>作者<s:property value="#ccc.author" /></td>	
		<td>上传者<s:property value="#ccc.userName" /></td>	
		<td><a href="cart/action?book.id=<s:property value="#ccc.id" />">加入购物车</a></td>	
	</tr>
	</s:iterator>
	
  </table>
  <s:debug></s:debug>
  <p>&nbsp;</p>
 
</div>
</body>
</html>
